package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"xixi/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/add", &controllers.VideoController{}, "POST:Add")
	beego.Router("/list", &controllers.VideoController{}, "GET:List")
	beego.Router("/up", &controllers.VideoController{}, "PUT:Up")
	beego.Router("/del", &controllers.VideoController{}, "*:Del")
}
